package com.cj.pj.sys.dao;

import com.cj.pj.sys.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SysUserDao {
    int getPageCount(String username);
    List<User> getPageObject(String username,int startIndex,int pageSize);
    int changeValid(int id,int valid);
    List<User> findObjectById(Integer id);
    void insertUser(User user);
    void updateUserById(User user);
    void deleteUserById(Integer id);
    @Select("select * from sys_users where username=#{username}")
    User findByUserName(String username);
}
